package lab02.test20;

import java.util.*;

public class Test20 {
    public static void main(String[] args) {
        Scanner x = new Scanner(System.in);
        System.out.print("please input:");


        String a = x.nextLine();  //输入字符串
        char[] arr = a.toCharArray();    //将字符串转为字符数组
        System.out.print("put out:");
        for (int i = 0; i < arr.length; i++) {
            //判断字符的ascll码值是否小于9的，是则输出
            if (arr[i] <= 57) {
                System.out.print(arr[i]);
            }
        }
    }
}
